package com.second.app.spring.component;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author GYZ
 * @Date 2023/9/13
 * <pre>
 *
 * </pre>
 */
public class MainDemo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext("com.second.app.spring.component");
        Student student =  (Student)ctx.getBean("student");
        System.out.println(student);
    }
}
